//组件（无状态组件，有状态组件）
import 'package:flutter/material.dart';

class myappTest extends StatelessWidget {
  const myappTest({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      //导航条
      appBar: AppBar(
        title: Text('Material App Bar',
            style: TextStyle(
              fontSize: 24,
            )),
        centerTitle: true,
        backgroundColor: Colors.pink,
      ),
      //主体区域
      body: Center(
        child: Text(
          'Hello world',
          style: TextStyle(fontSize: 25),
        ),
      ),
    );
  }
}
